Don't use g_slist_next in the windows backend
authorMatthias Clasen <mclasen@redhat.com>
Tue, 20 Oct 2015 00:30:33 +0000 (20:30 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 20 Oct 2015 10:14:57 +0000 (06:14 -0400)
We generally use ->next directly.

gdk/win32/gdkevents-win32.c
gdk/win32/gdkwindow-win32.c

index 82e9368fd553be6ad5cfaf4b93a54cc45f69f1ba..0390a1ed42c7e6b06fff8914806fbd10717f0835 100644 (file)
@@ -1034,7 +1034,7 @@ show_window_recurse (GdkWindow *window, gboolean hide_window)
              child = children->data;
              show_window_recurse (child, hide_window);
 
-             children = g_slist_next (children);
+             children = children->next;
            }
        }
 
@@ -1181,8 +1181,8 @@ find_common_ancestor (GdkWindow *win1,
   while (list1 && list2 && (list1->data == list2->data))
     {
       tmp = (GdkWindow *)list1->data;
-      list1 = g_list_next (list1);
-      list2 = g_list_next (list2);
+      list1 = list1->next;
+      list2 = list2->next;
     }
   g_list_free (path1);
   g_list_free (path2);
@@ -1280,7 +1280,7 @@ synthesize_crossing_events (GdkDisplay                 *display,
          while (list)
            {
              win = (GdkWindow *)list->data;
-             list = g_list_next (list);
+             list = list->next;
              if (list)
                next = (GdkWindow *)list->data;
              else
index 67519aa3d2e93d5be10831930ae2377880406c59..85bdb1fc2ef4a03804d7df7a9547b03d8673d2a1 100644 (file)
@@ -826,7 +826,7 @@ gdk_win32_window_destroy (GdkWindow *window,
       GdkWindowImplWin32 *child_impl = GDK_WINDOW_IMPL_WIN32 (GDK_WINDOW (child)->impl);
 
       child_impl->transient_owner = NULL;
-      tmp = g_slist_next (tmp);
+      tmp = tmp->next;
     }
   g_slist_free (window_impl->transient_children);
   window_impl->transient_children = NULL;
@@ -2299,7 +2299,7 @@ gdk_win32_window_set_icon_list (GdkWindow *window,
          small_diff = diff;
        }
 
-      pixbufs = g_list_next (pixbufs);
+      pixbufs = pixbufs->next;
     }
 
   /* Create the icons */